package com.wbt.spring.e01;

import com.wbt.spring.e01.config.AppConfig;
import com.wbt.spring.e01.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ContextApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        UserService userService = context.getBean(UserService.class);
        System.out.println("User信息：" + userService.getUser().toString());
        System.out.println("UserList信息：" + userService.getListUser().toString());
    }
}
